﻿import request from '/@/utils/request';
enum Api {
  AddMcMachine = '/api/mcMachine/add',
  DeleteMcMachine = '/api/mcMachine/delete',
  UpdateMcMachine = '/api/mcMachine/update',
  PageMcMachine = '/api/mcMachine/page',
  DetailMcMachine = '/api/mcMachine/detail',
}

// 增加车辆
export const addMcMachine = (params?: any) =>
	request({
		url: Api.AddMcMachine,
		method: 'post',
		data: params,
	});

// 删除车辆
export const deleteMcMachine = (params?: any) => 
	request({
		url: Api.DeleteMcMachine,
		method: 'post',
		data: params,
	});

// 编辑车辆
export const updateMcMachine = (params?: any) => 
	request({
		url: Api.UpdateMcMachine,
		method: 'post',
		data: params,
	});

// 分页查询车辆
export const pageMcMachine = (params?: any) => 
	request({
		url: Api.PageMcMachine,
		method: 'post',
		data: params,
	});

// 详情车辆
export const detailMcMachine = (id: any) => 
	request({
		url: Api.DetailMcMachine,
		method: 'get',
		data: { id },
	});




